package com.shijun.utils;

import com.shijun.bean.CommentBean;
import com.shijun.bean.DataBean;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

/**
 * Created by zhushijun on 2017/12/30 0030.
 */

public class Utils {
    public static String avatar_1 = "http://shijun.image.alimmdn.com/PullRecyclerView/test_avatar_6.png?t=1514610339195";
    public static String avatar_2 = "http://shijun.image.alimmdn.com/PullRecyclerView/test_avatar_5.png?t=1514610339185";
    public static String avatar_3 = "http://shijun.image.alimmdn.com/PullRecyclerView/test_avatar_2.png?t=1514610339173";
    public static String avatar_4 = "http://shijun.image.alimmdn.com/PullRecyclerView/test_avatar_3.png?t=1514610339172";
    public static String avatar_5 = "http://shijun.image.alimmdn.com/PullRecyclerView/test_avatar_4.png?t=1514610339168";
    public static String avatar_6 = "http://shijun.image.alimmdn.com/PullRecyclerView/test_avatar_1.png?t=1514610323763";
    public static String avatar_7 = "http://shijun.image.alimmdn.com/PullRecyclerView/tx10.png?t=1514610573749";
    public static String avatar_8 = "http://shijun.image.alimmdn.com/PullRecyclerView/tx13.png?t=1514610573523";
    public static String avatar_9 = "http://shijun.image.alimmdn.com/PullRecyclerView/tx16.png?t=1514610573501";
    public static String avatar_10 = "http://shijun.image.alimmdn.com/PullRecyclerView/tx14.png?t=1514610573501";
    public static String avatar_11 = "http://shijun.image.alimmdn.com/PullRecyclerView/tx11.png?t=1514610573163";
    public static String avatar_12 = "http://shijun.image.alimmdn.com/PullRecyclerView/tx15.png?t=1514610573160";
    public static String avatar_13 = "http://shijun.image.alimmdn.com/PullRecyclerView/tx12.png?t=1514610572822";
    public static String avatar_14 = "http://shijun.image.alimmdn.com/PullRecyclerView/tx9.png?t=1514610572811";
    public static String avatar_15 = "http://shijun.image.alimmdn.com/PullRecyclerView/tx7.png?t=1514610572536";
    public static String avatar_16 = "http://shijun.image.alimmdn.com/PullRecyclerView/tx8.png?t=1514610572148";
    public static String avatar_17 = "http://shijun.image.alimmdn.com/PullRecyclerView/tx6.png?t=1514610571821";
    public static String avatar_18 = "http://shijun.image.alimmdn.com/PullRecyclerView/tx4.png?t=1514610571735";
    public static String avatar_19 = "http://shijun.image.alimmdn.com/PullRecyclerView/tx5.png?t=1514610571735";
    public static String avatar_20 = "http://shijun.image.alimmdn.com/PullRecyclerView/tx2.png?t=1514610571728";

    public static String[] imgs = {avatar_1,avatar_2,avatar_3,avatar_4,avatar_5,avatar_6,avatar_7,avatar_8,avatar_9,avatar_10,
            avatar_11,avatar_12,avatar_13,avatar_14,avatar_15,avatar_16,avatar_17,avatar_18,avatar_19,avatar_20};

    public static List<DataBean> getData(){
        List<DataBean> list = new ArrayList<>();
        list.add(new DataBean("阿呆",getImg(),getImgs(),getLikesData(),getCommentData(),"叽里咕噜的很多很多很好的很多很多",false));
        list.add(new DataBean("阿瓜",getImg(),getImgs(),getLikesData(),getCommentData(),"叽里咕噜的很多很多很好的很多很多",false));
        list.add(new DataBean("阿庆",getImg(),getImgs(),getLikesData(),getCommentData(),"叽里咕噜的很多很多很好的很多很多",false));
        list.add(new DataBean("阿诗",getImg(),getImgs(),getLikesData(),getCommentData(),"叽里咕噜的很多很多很好的很多很多",false));
        list.add(new DataBean("阿号",getImg(),getImgs(),getLikesData(),getCommentData(),"叽里咕噜的很多很多很好的很多很多",false));
        list.add(new DataBean("阿问",getImg(),getImgs(),getLikesData(),getCommentData(),"叽里咕噜的很多很多很好的很多很多",false));
        list.add(new DataBean("阿噢",getImg(),getImgs(),getLikesData(),getCommentData(),"叽里咕噜的很多很多很好的很多很多",false));
        list.add(new DataBean("阿朱",getImg(),getImgs(),getLikesData(),getCommentData(),"叽里咕噜的很多很多很好的很多很多",false));
        list.add(new DataBean("阿新",getImg(),getImgs(),getLikesData(),getCommentData(),"叽里咕噜的很多很多很好的很多很多",false));
        list.add(new DataBean("阿码",getImg(),getImgs(),getLikesData(),getCommentData(),"叽里咕噜的很多很多很好的很多很多",false));
        return  list;
    }


    public static List<DataBean.UserBean> getLikesData(){
        List<DataBean.UserBean> list = new ArrayList<>();
        list.add(new DataBean.UserBean("阿呆瓜皮",1));
        list.add(new DataBean.UserBean("阿瓜瓜皮",2));
        list.add(new DataBean.UserBean("阿庆瓜皮",3));
        list.add(new DataBean.UserBean("阿诗瓜皮",4));
        list.add(new DataBean.UserBean("阿号瓜皮",5));
        list.add(new DataBean.UserBean("阿问瓜皮",6));
        list.add(new DataBean.UserBean("阿噢瓜皮",7));
        list.add(new DataBean.UserBean("阿朱瓜皮",8));
        list.add(new DataBean.UserBean("阿新瓜皮",9));
        list.add(new DataBean.UserBean("阿码瓜皮",10));
        return  list;
    }

    public static List<String> getImgs(){
        List<String> list = new ArrayList<>();
        int count = new Random().nextInt(10);
        for(int i = 0;i<count;i++){
            list.add(getImg());
        }
        return  list;
    }

    public static String getImg(){
        String img = imgs[new Random().nextInt(20)];
        return img;
    }

    public static List<CommentBean> getCommentData(){
        List<CommentBean> list = new ArrayList<>();

        list.add(new CommentBean("黑蝎子跑得快","","","这是谁啊，，怎么那么帅，都快赶上我了，真心给我压力！！！"));
        list.add(new CommentBean("摩纳哥多","黑蝎子跑得快","","我的天呢！"));
        list.add(new CommentBean("黑蝎子跑得快","摩纳哥多","","和我一起玩吧"));
        list.add(new CommentBean("摩纳哥多","黑蝎子跑得快","","想去哪就去哪！"));
        return list;
    }
}
